""" 
CSDN : heart_6662
PYTHON amateur   
"""
def output(s,l):
    if l == 0:
        return
    print(s[l-1])
    output(s,l-1)
    
s = input("input:")
l = len(s)
output(s,l)